<?php
// +----------------------------------------------------------------------
// | sfadmin - Suifeng Administration
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2020 http://suifeng.tech All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: suifeng <1787585212@qq.com>
// +----------------------------------------------------------------------

use suifeng\admin\AdminForm;
use suifeng\admin\AdminTable;
use suifeng\admin\AdminToolbar;
use suifeng\admin\AdminHtml;

// //************************************************************************
// // 表单操作
// //************************************************************************

// function sf_admin_form_group($name, $value, $control, $label, $help = null, $options = array())
// {
//     return AdminForm::render_group($name, $value, $control, $label, $help, $options);
// }

// function sf_admin_form_control($name, $value, $control, $label, $help = null, $options = array())
// {
//     return AdminForm::render_control($name, $value, $control, $label, $help, $options);
// }

// function sf_admin_form_label($label, $options = array())
// {
//     return AdminForm::render_label($label, $options);
// }

// function sf_admin_form_help($help, $options = array())
// {
//     return AdminForm::render_help($help, $options);
// }

// function sf_admin_form_button($text, $icon, $class, $options = array())
// {
//     return AdminForm::render_button($text, $icon, $class, $options);
// }

// function sf_admin_form_submit_and_cancel($submit_url, $cancel_url)
// {
//     return AdminForm::render_submit_and_cancel($submit_url, $cancel_url);
// }

// function sf_admin_form_hidden($name, $value, $options = array())
// {
//     return AdminForm::render_hidden($name, $value, $options);
// }

// function sf_admin_form_text($name, $value, $options = array())
// {
//     return AdminForm::render_text($name, $value, $options);
// }

// function sf_admin_form_password($name, $value, $options = array())
// {
//     return AdminForm::render_password($name, $value, $options);
// }

// function sf_admin_form_url($name, $value, $options = array())
// {
//     return AdminForm::render_url($name, $value, $options);
// }

// function sf_admin_form_email($name, $value, $options = array())
// {
//     return AdminForm::render_email($name, $value, $options);
// }

// function sf_admin_form_number($name, $value, $options = array())
// {
//     return AdminForm::render_number($name, $value, $options);
// }

// function sf_admin_form_decimal($name, $value, $options = array())
// {
//     return AdminForm::render_decimal($name, $value, $options);
// }

// function sf_admin_form_switch($name, $value, $options = array())
// {
//     return AdminForm::render_switch($name, $value, $options);
// }


// //************************************************************************
// // 列表操作
// //************************************************************************

// function sf_admin_table_render($array, $options = array())
// {
//     return (new AdminTable($array))->renderTable($options);
// }

// function sf_admin_table_header_select($options = array())
// {
//     return (new AdminTable(null))->renderHeaderSelect($options);
// }

// function sf_admin_table_header_text($text, $options = array())
// {
//     return (new AdminTable(null))->renderHeaderText($text, $options);
// }

// function sf_admin_table_column_text($row, $field, $options = array())
// {
//     return (new AdminTable(null))->renderColumnText($row, $field, $options);
// }

// function sf_admin_table_column_status($row, $field, $options = array())
// {
//     return (new AdminTable(null))->renderColumnStatus($row, $field, $options);
// }

// function sf_admin_table_column_select($row, $field, $options = array())
// {
//     return (new AdminTable(null))->renderColumnSelect($row, $field, $options);
// }

// function sf_admin_table_action($text, $icon, $class, $options = array())
// {
//     return (new AdminTable(null))->renderAction($text, $icon, $class, $options);
// }

// function sf_admin_table_empty_row($options = array())
// {
//     return (new AdminTable(null))->renderEmptyRow($options);
// }

// function sf_admin_table_pagination($pagination, $page_url)
// {
//     return (new AdminTable(null))->renderPagination($pagination, $page_url);
// }


// //************************************************************************
// // 工具栏操作
// //************************************************************************

// function sf_admin_toolbar_button($text, $icon, $class, $options = array())
// {
//     return (new AdminToolbar())->renderButton($text, $icon, $class, $options);
// }


// //************************************************************************
// // HTML操作
// //************************************************************************

// function sf_admin_html_span($text, $class, $options = array())
// {
//     return (new AdminHtml())->render_span($text, $class, $options);
// }

